'''
Created on 2010-8-17

@author: madlee
'''
import wx
import  wx.xrc  as  xrc

from kuai.kan.frames import MainFrame
from kuai.kan import resource
from resource import txt

RESFILE = r'kuaikan.xrc'

class KuaiKanApp(wx.App):
    def __init__(self, redirect=False, filename=None, useBestVisual=False, clearSigInt=True):
        wx.App.__init__(self, redirect, filename, useBestVisual, clearSigInt)
        
    def OnInit(self):
        self.res = xrc.XmlResource(RESFILE)
        frame = MainFrame(parent=None, title = txt.KuaiStudio, size=(800, 600))
        frame.Show()
        return True

if __name__ == '__main__':
    app = KuaiKanApp()
    app.MainLoop()

